namespace Gateway.Common.Models;

public class UploadOption
{
    /// <summary>
    /// 存储用户文件的根目录路径
    /// </summary>
    public string RootPath { get; set; }
    /// <summary>
    /// 支持路径传入的
    /// </summary>
    public string FilePath { get; set; }
    /// <summary>
    /// 是否查询文件名(需要查库)
    /// 当请求/raw下载时是否返回上传时的文件名
    /// </summary>
    public bool QueryFileName { get; set; }

    /// <summary>
    /// 域名
    /// </summary>
    public string Domain { get; set; }
    
    
    /// <summary>
    /// 启用文件MD5验证
    /// </summary>
    /// <remarks>防止重复上传</remarks>
    public bool EnableMd5 { get; set; }
    
    /// <summary>
    /// 大小
    /// </summary>
    public long MaxSize { get; set; }
    
    
    /// <summary>
    /// 上传格式
    /// </summary>
    public List<string> ContentType { get; set; }
}